package www.openteam.com.bean;

import java.io.Serializable;

import www.openteam.com.R;
import www.openteam.com.ui.HomeFragmet;
import www.openteam.com.ui.policy.SendRcvApprlFragment;

/**
 * 功能
 * Created by kylin on 2016/8/4.
 */
public enum OTPolicy implements Serializable {

    CUSTOMERORDER(0, R.string.gridview_customer_order, R.drawable.tab_icon_cstmappr,
            HomeFragmet.class, R.array.orderapproval, "DD0001"),
    PURCHASINGORDER(1, R.string.gridview_purchasing_order, R.drawable.tab_icon_pchsappr,
            HomeFragmet.class, R.array.porderapproval, "CG0004"),
    BUSINESS(2, R.string.gridview_accounts_due, R.drawable.tab_icon_payappr,
            HomeFragmet.class, R.array.receivablesapproval, "DD0004"),
    ABOUT(3, R.string.gridview_customary_due, R.drawable.tab_icon_collectappr,
            HomeFragmet.class, R.array.payableapproval, "CG0002"),
    SEDRCV(4,R.string.gridview_sendrcv_due, R.drawable.tab_icon_sendrcv_apprl,
            HomeFragmet.class, R.array.payableapproval, "OP0001")
;

    private int i;
    private int resName;
    private int resIcon;
    private Class<?> clz;
    private int resDetail;
    private String appAuthority; //权限

    public int getResDetail() {
        return resDetail;
    }

    public void setResDetail(int resDetail) {
        this.resDetail = resDetail;
    }

    OTPolicy(int i, int resName, int resIcon, Class<?> clz, int resDetail, String appAuthority) {
        this.i = i;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
        this.resDetail = resDetail;
        this.appAuthority = appAuthority;
    }

    public int getI() {
        return i;
    }

    public void setI(int i) {
        this.i = i;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public String getAppAuthority() {
        return appAuthority;
    }

    public void setAppAuthority(String appAuthority) {
        this.appAuthority = appAuthority;
    }
}
